// Package router
// @Author: zhangdi
// @File: rouer_views
// @Version: 1.0.0
// @Date: 2023/10/16 16:45
package router

import (
	"server/application/controller/views"
	"server/pkg/ginp"
)

func init() {
	AppendRouter(ItemInfo{ //create
		Path:           "/",                           //qpi路径
		Handlers:       ginp.ConvHandler(views.Index), //对应控制器
		HttpType:       HttpGet,                       //http请求类型
		NeedLogin:      true,                          //是否需要登录
		NeedPermission: true,                          //是否需要鉴权
		PermissionName: "sys_user.create",             //完整的权限名称,会跟权限表匹配
		Swagger:        &SwaggerInfo{IsIgnore: true},  //swagger文档配置
	})

	//{{append}}
}
